package com.automannn.springboot.practice.springFactoryLoader;

import org.springframework.core.io.support.SpringFactoriesLoader;

import java.util.List;


/**
 * @author automannn
 * @time 2021/9/30 10:14
 */
public class SpringFactoryLoaderTest {
    public static void main(String[] args) {
        /*xxx: 根据某个类型，查询实现类*/
       List automannnExtensionAbilityList= SpringFactoriesLoader.loadFactoryNames(AutomannnExtensionAbility.class,SpringFactoryLoaderTest.class.getClassLoader());
        System.out.println(automannnExtensionAbilityList);
    }
}
